package com.trgis.geotools.model;

import com.trgis.geotools.GeoJSON;
import com.vividsolutions.jts.geom.Point;

/**
 * 2018/11/2
 *
 * @author wangfy
 */
@GeoJSON(name = "poi")
public class Poi {
    /**
     * 类型是int double等时，必须指定type为包装类
     */
    @GeoJSON(isID = true, type = Integer.class)
    private int id;

    @GeoJSON(isGeometry = true)
    private Point location;

    @GeoJSON
    private String name;

    /**
     * 字段名称超过10个字符时，生成shp字段定义会出错
     */
    @GeoJSON(field = "the_pro", type = Double.class)
    private double the_properties;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Point getLocation() {
        return location;
    }

    public void setLocation(Point location) {
        this.location = location;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getThe_properties() {
        return the_properties;
    }

    public void setThe_properties(double the_properties) {
        this.the_properties = the_properties;
    }
}
